| commit | e4a208fcc90ff570a55640037eb6006830d94f4e | [log] [tgz] |
|---|---|---|
| author | Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> | Thu Jul 11 16:22:50 2024 +0000 |
| committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Thu Jul 11 16:22:50 2024 +0000 |
| tree | b23fc9bb91008ede53f881c56e64fe73be4fc387 | |
| parent | 75ac1f8f7d58058e4545d05659e82a85d775872a [diff] | |
| parent | a459a6782c067855ba03d48dd4522fba1e9206e7 [diff] |
Merge "Mark apex-available" into main am: a459a6782c Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/rand_chacha/+/3163573 Change-Id: If0c19000dd4ad271764cee5ce98a07ca08c7ba4e Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
A cryptographically secure random number generator that uses the ChaCha algorithm.
ChaCha is a stream cipher designed by Daniel J. Bernstein[^1], that we use as an RNG. It is an improved variant of the Salsa20 cipher family, which was selected as one of the “stream ciphers suitable for widespread adoption” by eSTREAM[^2].
The RNGs provided by this crate are implemented via the fast stream ciphers of the c2-chacha crate.
Links:
[^1]: D. J. Bernstein, ChaCha, a variant of Salsa20
[^2]: eSTREAM: the ECRYPT Stream Cipher Project
rand_chacha is no_std compatible when disabling default features; the std feature can be explicitly required to re-enable std support. Using std allows detection of CPU features and thus better optimisation.
rand_chacha is distributed under the terms of both the MIT license and the Apache License (Version 2.0).
See LICENSE-APACHE and LICENSE-MIT, and COPYRIGHT for details.